Incremental schema consistency validation on geographic features

ABSTRACT

Aspects of the invention relate generally to updating interconnected feature data stored in a repository while maintaining highly consistent views of the data. More specifically, aspects relate to updating some features in bulk while providing for incremental updates for others which are not completely independent of the bulk edits. Features which may be updated incrementally may contain references to other features and may be validated on an as-needed basis. These “incremental” features may also be associated with “backreferences,” which link two features together and are used in the validation process. For example, where feature A contains a link to feature B and feature B does not also include a link to feature A, if any edits are performed on feature B, a backreference may direct the server to determine whether the references in A are still consistent with the edits to B before the edit goes into a live state.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of U.S. patent applicationSer. No. 12/973,164, filed Dec. 20, 2010, the disclosure of which isincorporated herein by reference.

BACKGROUND OF THE INVENTION

Systems which provide geographic information services to users typicallyrequire constant updating in order to maintain usefulness and accuracy.Geographic systems may continuously update the features which are usedto describe or generate a particular view of the world (map or mapinformation), for example, information regarding the course and locationof roadways, business information, size and location of buildings andother structures, etc. In addition, these features may be associatedwith any number of “references” which associate or link two or morefeatures together. In other words, a reference may describe an instanceof a relation between the two features.

For example, a town (feature T) may be contained within a state (featureS). The relation is between S and T (“is contained within”), and thereference is therefore an instance of two features (S and T) involved inthe relation. Thus, changes or updates to feature S may have an effecton feature T. In another example, updating road data on one or twosegments of a road network will undoubtedly affect the attributes of thesurrounding segments. For this reason, road data may be consideredhighly “dependent” and thus may have a large number of references.Accordingly, maintaining consistent views of the world (maps and mapinformation) not only involves updating the features themselves but alsomaintaining the consistencies of any references.

Presently, updating large geographic information systems may involveeither completely locking users out during an updating period orperforming an update or entering changes at a time when users are lesslikely to request information. These systems may operate under theassumption that all of the data is highly dependent (there are manyreferences) and must be delivered in bulk. As a result, the entire worldof data may need to be re-written periodically, such as every week, inorder to maintain consistency. However, not all edits may affect theconsistency of the data. For example, edits to a telephone number or theoperating hours of a business may be completely independent of any otherfeatures, and thus may be allowed independent of other changes in thesystem. Accordingly, bulk updating all of the information periodicallymay delay data updates and requires enormous processing power.

Even using the total bulk updating model, it may be difficult to mergehighly dependent data from multiple sources. Some systems may partitionthe world based on the feature type and country. Highly dependent types,such as roads, may only be taken from a single source per country whichmay present problems when managing cross-country references in thesedata sources, for example, when attempting to connect road networksacross borders.

In addition to editing data, these services must also validate the data.Generally, these services must check each edited attribute, one by one,to ensure that the data is consistent. For example, where feature Aincludes references to features B and C, the server may retrieve bothfeatures B and C in order to ensure that the changes to feature A do notinvalidate some parameter associated with features B or C. Calling eachof the referenced features is a slow process and introduces the risk ofcollisions between updating a feature and calling the same feature tovalidate an edit to another feature. Thus, this method may result in asignificant investment in processing power and time required to completethe validation.

BRIEF SUMMARY OF THE INVENTION

Aspects of the invention relate generally to updating interconnectedfeatures stored in a repository while maintaining highly consistentviews of the repository data. More specifically, aspects relate toupdating some features in bulk while providing for incremental updatesfor other features which are not completely independent of the bulkedits. Features which may be updated incrementally may containreferences to other features. These features may be validated on anas-needed basis in order to reduce the processing power and timerequired to validate the changes. In some examples, these “incremental”features may be associated with “backreferences,” which link twofeatures together in order to simplify and expedite the validationprocess. In other words, where feature A contains a link to feature Band feature B does not also include a link to feature A, if any editsare performed on feature B, a backreference may direct the server todetermine whether the references in A are still consistent with theedits to B before the edit goes into a live state. This may allow thesystem to maintain consistent views of the data while also reducing theamount of processing required to validate the incremental edits.

One aspect of the invention provides a computer-implemented method forvalidating edits to features stored in a partition of a repository whichallows for incremental edits to the features. The method includesstoring a plurality of features in the partition of the repository, asubset of the plurality of features is associated with a referenceidentifying a referenced feature of the plurality of features; editing,by a processor, a first feature of the plurality of features by makingone or more edits to obtain an edited first feature; identifying areference associated with the edited first feature, the referenceidentifying a second feature of the plurality of features; determining,by the processor, a relationship type associated with a set ofrequirements based on the edited first feature and the reference; if theone or more edits affect the relationship with the second feature basedon the relationship type, retrieving the referenced feature; and if theedited first feature and the referenced feature satisfy the set ofrequirements, validating the edited feature.

In one example, the method also includes rejecting the edited feature ifthe one or more edits do not satisfy the set of requirements. In anotherexample, the method also includes identifying a set of code based on therelationship type; and determining whether the one or more edits couldaffect the second feature based on the set of code. In another example,the method also includes determining if the edited first feature and thereferenced feature satisfy the set of requirements based on the set ofcode. In another example, the relationship type is a bidirectionalrelationship type between the edited first feature and the referencedfeature. In another example, the second feature includes a reference tothe first feature. In another example, the referenced feature isretrieved from the repository. In another example, the one or more editsto the first feature are included in an editing transaction and thereferenced feature is an edited feature included in the editingtransaction.

Another aspect of the invention provides a computer-implemented methodfor acting on backreferences to features stored in a partition of arepository which allows for incremental edits to the features. Themethod includes storing a plurality of features in the partition of therepository, a subset of the plurality of features is associated with areference identifying a referenced feature of the plurality of features;editing, by a processor, a first feature of the plurality of features bymaking one or more edits to obtain an edited feature; identifying aunidirectional reference associated with the edited feature, theunidirectional reference identifying a second feature of the pluralityof features; determining a unidirectional relationship type based on theedited feature and the reference; identifying a backreference action tobe taken based on the unidirectional relationship type and the one ormore edits, wherein the backrereference action is selected from thegroup consisting of adding, dropping, and keeping; and performing, bythe processor, the backreference action.

A further aspect of the invention provides a computer-implemented methodfor validating edits to features stored in a partition of a repositorywhich allows for incremental edits to the features. The method includesstoring a plurality of features in the partition of the repository, eachfeature of the plurality of features is associated with a featureidentifier, a subset of the plurality of features is associated with areference identifying a referenced feature of the plurality of features;editing, by a processor, a first feature of the plurality of features bymaking one or more edits to obtain an edited feature associated with afeature ID which is the same as the feature ID of the first feature;accessing a table listing a plurality of backreferences, eachbackreference is associated with the feature identifier associated witha referred to feature, a feature identifier associated with a referringfeature, and a backreference type associated with a set of requirements;identifying one of the plurality of backreferences associated with areferred to feature ID which is the same as the feature ID of the firstfeature; if the one or more edits could affect the referring featureassociated based on the backrereference type, retrieving the referringfeature from the repository; and if the edited feature and the referringfeature satisfy the set of requirements, validating, by the processor,the edited feature.

Yet another aspect of the invention provides computer for validatingedits. The computer includes memory including a repository with apartition and a processor coupled to the memory. The processor isoperable to store a plurality of features in the partition of therepository, a subset of the plurality of features is associated with areference identifying a referenced feature of the plurality of features;edit a first feature of the plurality of features by making one or moreedits to obtain an edited first feature; identify a reference associatedwith the edited first feature, the reference identifying a secondfeature of the plurality of features; determine a relationship typeassociated with a set of requirements based on the edited first featureand the reference; if the one or more edits affect the relationship withthe second feature based on the relationship type, retrieve thereferenced feature from the memory; and if the edited first feature andthe referenced feature satisfy the set of requirements, validate theedited feature.

In one example, the processor is also operable to reject the editedfeature if the one or more edits do not satisfy the set of requirements.In another example, the processor is also operable to identify a set ofcode based on the relationship type and determine whether the one ormore edits could affect the second feature based on the set of code. Inanother example, the processor is also operable to determine if theedited first feature and the referenced feature satisfy the set ofrequirements based on the set of code. In another example, therelationship type is a bidirectional relationship type between theedited first feature and the referenced feature. In another example, thesecond feature includes a reference to the first feature. In anotherexample, the referenced feature is retrieved from the repository. Inanother example, the one or more edits to the first feature are includedin an editing transaction and the referenced feature is an editedfeature included in the editing transaction.

Still a further aspect of the invention provides a computer forvalidating edits. The computer includes memory including a repositorywith a partition. The computer also includes a processor coupled to thememory. The processor is operable to: store a plurality of features inthe partition of the repository, a subset of the plurality of featuresis associated with a reference identifying a referenced feature of theplurality of features; edit a first feature of the plurality of featuresby making one or more edits to obtain an edited feature; identify aunidirectional reference associated with the edited feature, theunidirectional reference identifying a second feature of the pluralityof features; determine a unidirectional relationship type based on theedited feature and the reference; identify a backreference action to betaken based on the unidirectional relationship type and the one or moreedits, wherein the backrereference action is selected from the groupconsisting of adding, dropping, and keeping; and perform thebackreference action.

Yet a further aspect of the invention provides a computer for validatingedits. The computer includes memory including a repository with apartition for storing a plurality of features in the partition of therepository. Each feature of the plurality of features is associated witha feature identifier. A subset of the plurality of features is alsoassociated with a reference identifying a referenced feature of theplurality of features. The memory also stores a table listing aplurality of backreferences. Each backreference is associated with thefeature identifier associated with a referred to feature, a featureidentifier associated with a referring feature, and a backreference typeassociated with a set of requirements. The computer also includes aprocessor coupled to the memory. The processor is operable to: edit afirst feature of the plurality of features by making one or more editsto obtain an edited feature associated with a feature ID which is thesame as the feature ID of the first feature; access the table listingthe plurality of backreferences; identify one of the plurality ofbackreferences associated with a referred to feature ID which is thesame as the feature ID of the first feature; if the one or more editscould affect the referring feature associated based on thebackrereference type, retrieve the referring feature from therepository; and if the edited feature and the referring feature satisfythe set of requirements, validate the edited feature.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a functional diagram of a system in accordance with an aspectof the invention.

FIG. 2 is a pictorial diagram of a system in accordance with an aspectof the invention.

FIGS. 3A and 3B are diagrams of exemplary data in accordance withaspects of the invention.

FIGS. 4A-4D are diagrams of exemplary data in accordance with aspects ofthe invention.

FIG. 5 is a diagram of exemplary data in accordance with aspects of theinvention.

FIG. 6 is a flow diagram in accordance with aspects of the invention.

DETAILED DESCRIPTION

As shown in FIGS. 1-2, a system 100 in accordance with one aspect of theinvention includes a computer 110 containing a processor 120, memory 130and other components typically present in general purpose computers.

The memory 130 stores information accessible by processor 120, includinginstructions 132, and data 134 that may be executed or otherwise used bythe processor 120. The memory 130 may be of any type capable of storinginformation accessible by the processor, including a computer-readablemedium, or other medium that stores data that may be read with the aidof an electronic device, such as a hard-drive, memory card, flash drive,ROM, RAM, DVD or other optical disks, as well as other write-capable andread-only memories. In that regard, memory may include short term ortemporary storage as well as long term or persistent storage. Systemsand methods may include different combinations of the foregoing, wherebydifferent portions of the instructions and data are stored on differenttypes of media.

The instructions 132 may be any set of instructions to be executeddirectly (such as machine code) or indirectly (such as scripts) by theprocessor. For example, the instructions may be stored as computer codeon the computer-readable medium. In that regard, the terms“instructions” and “programs” may be used interchangeably herein. Theinstructions may be stored in object code format for direct processingby the processor, or in any other computer language including scripts orcollections of independent source code modules that are interpreted ondemand or compiled in advance. Functions, methods and routines of theinstructions are explained in more detail below.

The data 134 may be retrieved, stored or modified by processor 120 inaccordance with the instructions 132. For instance, although thearchitecture is not limited by any particular data structure, the datamay be stored in computer registers, in a relational database as a tablehaving a plurality of different fields and records, XML documents orflat files. The data may also be formatted in any computer-readableformat. By further way of example only, image data may be stored asbitmaps comprised of grids of pixels that are stored in accordance withformats that are compressed or uncompressed, lossless or lossy, andbitmap or vector-based, as well as computer instructions for drawinggraphics. The data may comprise any information sufficient to identifythe relevant information, such as numbers, descriptive text, proprietarycodes, references to data stored in other areas of the same memory ordifferent memories (including other network locations or servers) orinformation that is used by a function to calculate the relevant data.

The processor 120 may be any conventional processor, such as processorsfrom Intel Corporation or Advanced Micro Devices. Alternatively, theprocessor may be a dedicated controller such as an ASIC. Although FIG. 1functionally illustrates the processor and memory as being within thesame block, it will be understood by those of ordinary skill in the artthat the processor and memory may actually comprise multiple processorsand memories that may or may not be stored within the same physicalhousing. For example, memory may be a hard drive or other storage medialocated in a server farm of a data center. Accordingly, references to aprocessor or computer will be understood to include references to acollection of processors or computers or memories that may or may notoperate in parallel.

The computer 110 may be at one node of a network 150 and capable ofdirectly and indirectly receiving data from other nodes of the network.For example, computer 110 may comprise a web server that is capable ofreceiving data from client devices 160 and 170 via network 150 such thatserver 110 uses network 150 to transmit and display information to auser on display 165 of client device 170. Server 110 may also comprise aplurality of computers that exchange information with different nodes ofa network for the purpose of receiving, processing and transmitting datato the client devices. In this instance, the client devices willtypically still be at different nodes of the network than any of thecomputers comprising server 110.

Network 150, and intervening nodes between server 110 and clientdevices, may comprise various configurations and use various protocolsincluding the Internet, World Wide Web, intranets, virtual privatenetworks, local Ethernet networks, private networks using communicationprotocols proprietary to one or more companies, cellular and wirelessnetworks (e.g., WiFi), instant messaging, HTTP and SMTP, and variouscombinations of the foregoing. Although only a few computers aredepicted in FIGS. 1-2, it should be appreciated that a typical systemcan include a large number of connected computers.

Each client device may be configured similarly to the server 110, with aprocessor, memory and instructions as described above. Each clientdevice 160 or 170 may be a personal computer intended for use by aperson 191-192, and have all of the components normally used inconnection with a personal computer such as a central processing unit(CPU) 162, memory (e.g., RAM and internal hard drives) storing data 163and instructions 164, an electronic display 165 (e.g., a monitor havinga screen, a touch-screen, a projector, a television, a computer printeror any other electrical device that is operable to display information),end user input 166 (e.g., a mouse, keyboard, touch-screen ormicrophone). The client device may also include a camera 167, positioncomponent 168, accelerometer, speakers, a network interface device, abattery power supply 169 or other power source, and all of thecomponents used for connecting these elements to one another.

Although the client devices 160 and 170 may each comprise a full-sizedpersonal computer, they may alternatively comprise mobile devicescapable of wirelessly exchanging data with a server over a network suchas the Internet. By way of example only, client device 160 may be awireless-enabled PDA or a cellular phone capable of obtaininginformation via the Internet. The user may input information using asmall keyboard (in the case of a Blackberry-type phone), a keypad (inthe case of a typical cellular phone) or a touch screen (in the case ofa PDA).

Repository 136 may store feature-related data as part of memory 130.Although shown as a single block within server 110, it will beunderstood that repository 136 may actually refer to storage associatedwith a single server or multiple servers. As described above, therepository may include feature data which describes a world, for examplemaps and associated map information, which may be queried and returnedto a client device for display to a user. The repository may bepartitioned into two or more partitions such that data may be stored ineach of the partitions.

For example, one partition may be used to store bulk features 138. Bulkfeatures may include features which are updated in bulk, for example,highly dependent features such as road segments, etc. It will beunderstood, however, that road segments and other highly dependentfeatures need not be designated as bulk features and may actually bedesignated as incremental features which may be updated incrementally asdescribed in more detail below. Thus, at least some portion of or all ofthe road segments in a repository of geographic information may bedesignated as incremental features or bulk features. Accordingly, somehighly dependent features, such as road segments, may be used herein asexamples of incremental features or bulk features.

Each bulk feature may be associated with a feature identifier (featureID), references, and an epoch. A feature ID may be used to identify thebulk feature as well as other features of the repository. Thus, aparticular reference of a bulk feature may actually include the featureID of the referenced feature. Bulk features may only include referencesto other bulk features. In addition, the references need not include theepoch of the referenced feature as bulk features may only includereferences to other bulk features of the same epoch.

FIG. 3A includes exemplary bulk features from two different epochs. Forexample, each of bulk features of 310, 320, 330, and 340 includes bulkfeature information. Bulk features 310 and 320 are identified by featureIDs B-1 and B-2, respectively. Both bulk features 310 and 320 are alsoassociated with epoch 1 and only include references (311-312 and321-322) to other bulk features but do not identify a particular epoch.

Bulk features 330 and 340 represent bulk features 310 and 320 at epoch2. These bulk features at epoch 2 again only include references (331-332and 341-342) to other bulk features but do not identify a particularepoch. Between epoch 1 and epoch 2, feature B-1 is changed such thatreference 312 to feature B-3 is updated to feature B-4 at reference 332.Between epoch 1 and epoch 2, feature B-2 is changed such that the bulkfeature data is updated.

The bulk features 138 may (but need not) be organized as a table whichholds all bulk epoch information and the current state of each epoch.Again, the epoch may be described as a series of replacements edits tothe bulk features 138. A particular epoch's edits to a particular bulkfeature and the particular bulk feature itself may be considereddifferent versions of the same feature. In other words, the feature attwo different epochs may be considered two different versions. Thus,each version of a bulk feature may be uniquely identified by its featureID (the same for each version of a bulk feature) and an epoch ID(different for each version of a bulk feature). The bulk epoch table mayinclude a column or series of entries identifying the state of the bulkepoch as in, for example, an in-progress state (being written), acommitted state (ready to go live), a blessed state (live), and anabandoned state (not to be used).

While there may be many different epochs in various states, only oneepoch may be in the “in-progress” state at any given time. When writinga particular bulk feature associated with a particular feature ID, theremay not be any previous incremental feature versions (see furtherdescription below) associated with the same feature ID. If a clientdevice queries any of the edited features, the server will not returnany of changes to the features associated with an “in progress” epoch.

Once the edits have been completed, the status of the epoch may beupdated to an “approval” or other similar state which allows forinternal validation checks of the bulk edits, for example, for quality,consistency, and accuracy. The validation checks may include usingGoogle's MapReduce product as described in the article by Jeffrey Deanand Sanjay Ghemawat, entitled “MapReduce: Simplified Data Processing onLarge Clusters,” OSDI'04: Sixth Symposium on Operating System Design andImplementation, San Francisco, Calif., (2004), and U.S. Pat. No.7,650,331 to Dean, et al., the disclosures of which are herebyincorporated herein by reference. MapReduce may be run over a portion ofor the entire epoch to ensure that various benchmarks have been met.MapReduce may be done before or after the epoch is written to therepository, while other checks (such as validating that there is noother incremental feature at a bulk feature's feature ID) may beperformed as the edits are being written. For example, the validationchecks may include checking bulk feature edits to ensure that there isno previous incremental feature associated with any other bulk feature'sfeature ID, that the bulk features only include references to other bulkfeatures (without epoch designation), that there are no references toincremental features, etc. The validation checks may also includechecking incremental features to ensure that any references include bulkfeatures with epochs and incremental features without epochs, etc.

Where the edits have been completed, and in some examples validated, thebulk epoch may be moved to a “live” or other similar state. Once anepoch is moved to the live state, the bulk features may be accessed byclient devices and may not be “abandoned”. At any point in time beforegoing live, a bulk epoch may be set to the abandoned state where all ofthe changes of the bulk epoch are ignored or are no longer visible toany client device. Though it is not necessary, in some examples, inorder for a bulk epoch to go live, all previous bulk epochs must also belive or abandoned.

As shown in FIG. 1, another partition of repository 136 may be used tostore incremental features 140. Incremental features 140 may be updatedincrementally (as opposed to in bulk) and independently of otherfeatures. For example, a business listing including a phone number maybe designated as an incremental feature because updating a phone numbershould have little to no effect on the rest of the repository data.However, as explained above, incremental features may also include otherfeatures, such as road segments, which are dependent upon other featuresand to which changes may affect some portion of the repository data.Incremental features may be updated in place and in near real time, suchas, for example, on the order of minutes.

Similar to bulk features, incremental features may be associated withfeature IDs which may be used to identify and retrieve these features.

Incremental features 140 may also include references to other features.For example, a particular incremental feature may include references toother bulk features and/or other incremental features. Each reference toanother incremental feature may include the feature ID of the otherincremental feature. Each reference to a bulk feature may include a bulkfeature ID and an epoch. The particular incremental feature may alsoinclude references to the same bulk feature at different epochs.

Each time an incremental feature is edited or updated, the updatedfeature is associated with a new timestamp. For example, a user mayrequest or call the incremental feature in order to make any edits. Atransactional storage system, such as a database, may be used to resolveany conflicts if multiple edits are attempted on the same feature. Thetransactional system may effectively serialize the calls to ensure thateach transaction, for example edit, leaves the edited feature as well asthe repository in a consistent state. Accordingly, there may be aplurality of different versions of the same incremental feature (withthe same feature ID) at different timestamps.

Once each of the bulk epoch features have been written and/or edited(for example in a new epoch), the incremental features must also beupdated. For example, if bulk epoch X has been completed, anyincremental features with references to bulk features must be updated,such as by generating a new timestamp to include any updated referencesto the appropriate feature at bulk epoch X.

FIG. 3B includes exemplary incremental features from two differenttimestamps. For example, each of incremental features 350, 360, 370, and380 includes incremental feature information. Incremental features 350and 360 are identified by feature IDs I-1 and I-2, respectively. Bothincremental features 350 and 360 are also associated with timestamp T-1.These incremental features also include references 351-352 and 361-362to bulk features and references 353 and 363 to incremental features.

In the example of FIG. 3, each of the references to bulk featuresincludes a version of the reference for each bulk epoch, assuming in theexample, there are only epochs 1 and 2. Incremental features 370 and 380represent incremental features 350 and 360 associated with timestampT-2. These incremental features also include references 371-372 and381-382 to bulk features and references 373 and 383 to incrementalfeatures. Again, each of the references to bulk features includes aversion of the reference for each bulk epoch, again, assuming in theexample that there are only epochs 1 and 2. Between timestamps T-1 andT-2, incremental feature I-1 us updated by changing the feature ID atepoch 1 of reference 351 to the feature ID at epoch 2 of reference 371.Between timestamps T-1 and T-2, incremental feature I-2 us updated bychanging the feature ID of reference 363 to the feature ID of reference383.

Similar to bulk features 138, incremental features 140 may also beorganized as a table which includes all of the feature's information.For example, the table may include the incremental feature's feature ID,the feature data, a timestamp, and any associated references.

Again, the repository 136 may be partitioned such that bulk features 138may only include references to other bulk features (no incrementalfeatures), whereas incremental features 140 may include references tobulk features or incremental features. As bulk features cannot containreferences to incremental features, any bidirectional references musttie two bulk or two incremental features together. For example, A and Bmay be, for example, a route and a road segment, respectively. Thesefeatures may contain bidirectional references, where A includes areference to B and B includes a reference to A. If B is a bulk feature,A must be a bulk feature, and if A is an incremental feature, B mustalso be an incremental feature. The reverse must also be true. Thus, thefeature pairs with bidirectional references must be either both bulk orboth incremental features.

Some features may also include unidirectional references. For example, afeature such as a business may refer to a road segment in the business'saddress. In some examples, the road segment may not include a referenceto the business. The relationship between the business and the roadsegment is thus a unidirectional one.

Where an incremental feature includes a unidirectional reference toanother incremental feature, the server may store a “backreference” or“reverse reference.” For example, if feature A refers to feature B, theserver may generate a backreference from feature B to feature A. Asexplained in more detail below, these backreferences may be required inorder to insure that changes to the referred to feature are stillconsistent with the referring feature. A backreference may onlyoriginate from another incremental feature. The server may store a listof such backreferences, for example, in a table indexed by theincremental feature's feature ID values.

Each backreference may also have one or more unidirectional relationshiptypes associated and stored with it. These backreference types mayidentify attributes of the referred to feature changes to which mayaffect the backreference or the referred to feature. For example, if anestablishment refers to a road segment in its address, the relationshipmight be affected if the road moves (since there might be a requirementthat an establishment be near the road that it is on) but it might notbe if the road changes from a two-way to a one way. Thus, thebackreference may be identified as an “address,” “geometry,” “bounds,”or “establishment-road segment” type relationship. This is becausechanges to the referred to the geometry or bounds of the road segmentmay affect an establishment's address or relationship with the roadsegment.

Backreferences to bulk features need not, but may, exist. As bulkfeatures may only be written in the “in-progress” state and asreferences to bulk features may only reference to epochs which have gonelive, a bulk feature may never change out from under a reference to it.For example, bulk feature A may be written once at bulk epoch 1 and thennever modified. It may be edited in a future epoch, but the old value atbulk epoch 1 may remain. Thus, a feature A at bulk epoch 1 may beimmutable once written. Therefore, any references to feature A at bulkepoch 1 cannot become invalid. Therefore it may be unnecessary to storea list of backreferences to bulk features.

Various operations in accordance with aspects of the invention will nowbe described. It should also be understood that the following operationsdo not have to be performed in the precise order described below.Rather, various steps can be handled in a different order orsimultaneously.

Once an incremental feature has been edited, for example, a new versionat a new time stamp has been generated, the server may perform variousvalidation checks to ensure the validity of the changes. Thesevalidation checks may include, for example, checking single-featurevalidity, referenced-feature existence, as well as multi-featureconsistency.

Single feature validity may include validating data within a singlefeature, such as by checking that expected fields are present. Forexample, a route feature may be required to contain route data but noaddress or polygon data; a transit-transfer feature must containtransit-transfer data of a nonnegative distance; and a name featurerepresenting a province code must not contain a language code.

The server may also validate by checking for a referenced feature'sexistence. For example, one feature may refer to another by its featureID. For all such references, the repository must include a feature withthe referred to feature ID. Thus, the server may check the repositoryfor the existence of the referred to feature ID.

The server may also check for consistency between two incrementalfeatures which refer to one another. For example references betweenfeatures may induce consistency requirements between the referringfeature and the referred to feature. In one example, a requiredbidirectional relationship may be required where a road segment refersto an intersection as its endpoint. In other words, the intersectionmust also refer to the road segment. In another example, many referencesmay require that the referred to feature's bound (for example,geolocation coordinates which define the geographic limits of a feature)contain the referring feature's bound. For example, a city's bound maybe required to be within a state's bounds.

In some examples, some reference may induce a collective or “group”consistency requirement between a common “hub” feature and a set offeatures. For example, all of an intersection's incoming road segmentsmay be required to be ordered counterclockwise according to the geometryof the road segments. If the intersection does not store the angle ofthe intersection at which each of the road segments intersect theintersection, the server retrieving each of the road segment featuresmay calculate the angles based on the last two points along the roadsegment before it intersects with the intersection. The server may thendetermine whether the set of road segments is listed in the correctorder. Thus, if an edit were to add a new road segment to anintersection, the server may retrieve the two road segments intersectingwith the intersection on either side of the new road segment. If an editchanges the angle at which a segment approaches an intersection, theserver may retrieve the intersection feature, run a group check aroundthe edited segment, and retrieve the two road segments intersecting withthe intersection on either side of the edited road segment. Once each ofthese features has been returned, the server may run the groupvalidation on the intersection and the three road segments.

In another example, the server may perform group validation checks ontransit routes. Transit networks, such as subways, trains and busses,may be treated similarly to road segments. These features may includeroutes (bus routes, train routes, subway routes) which may be dividedinto legs. The server may require that each leg in the middle of a routehave an end point which is the starting point of the next leg of theroute. For example, a route feature from point A to point D may includereferences to leg feature A-B, leg feature B-C, and feature leg C-D,where leg feature A-B includes start point A and end point B, legfeature B-C includes start point B and end point C, and leg feature C-Dincludes start point C and end point D. If the route is edited such thatleg feature B-C becomes leg feature B-X, the server may be required toretrieve the route, identify the leg features on either side of theedited leg feature, and determine whether these features include an endpoint of B and a start point of X.

Incremental Features with Bidirectional Relationships

In one example, the server may perform validation checks on anincremental feature which includes a bidirectional relationship withanother feature. For example, if a first incremental feature is a roadsegment, it may include a reference to second incremental feature suchas an intersection. If the intersection feature also includes areference to the road segment, these features may share a bidirectionalrelationship. Thus, the server may first examine a feature to determineif it includes any reference to other features.

The server may identify a type of the bidirectional relationship betweena first incremental feature and a second incremental feature. Forexample, where one feature of a certain type, such as a road segment,references another feature of a certain type, such as an intersection,the server may identify the relationship as a “roadsegment-intersection” relationship. It will be understood that theserver need not call the second reference from the repository todetermine that the relationship is bidirectional. The bidirectionalityof a relationship may be apparent from the relationship's type. In otherwords, the types of first and second features may require therelationship to be bidirectional. It will be further understood that therelationship types used herein are merely exemplary and not limiting asmany different variations of relationships may be used.

Next, the server may determine whether the first incremental feature haschanged in a way that could invalidate its relationship with the secondincremental feature. For example, once the relationship has beenclassified, the server may identify an appropriate set of code, such asa C++ object, for examining the features of the identified relationshiptypes. Similarly, if a feature includes multiple bidirectionalrelationship types with other features, the server may identify one ormore appropriate sets of code or C++ objects based on the identifiedrelationship types.

The server then runs the appropriate set of code upon the firstincremental feature to determine whether the edits to the featurerequire the server to validate the relationship between the firstincremental feature and the second incremental feature. In other words,rather than requesting the second feature, the server may determinewhether this type of edit would affect this type of featurerelationship. For example, a road segment's position changing mightinvalidate its relationship with an intersection, as might the additionor removal of an intersection change the relationship with a roadsegment.

If the relationship may be affected by the edit, the server may requestthe second incremental feature from the repository in order to performthe validation checks. Using the example of features A, B, and C abovewhere A includes reference to B and C, the server may identify therelationship types of the A to B and A to C references and determinewhether the edits could affect these relationship types.

Once both of the incremental features in a pair are available, eachrelationship may be validated. For example it may take some time forqueries to the persistent storage to return a requested feature, anddifferent queries may take different lengths of time. When both featuresof a pair are returned, the server examines the pairs of features asthey come available and runs the appropriate validation checks. Forexample, the pair of features may be passed back through the appropriateset of code for the relationship type (previously selected based on thetype of relationship between the features). The server may recordwarnings or errors if the server finds any invalid relationshipsdepending on the severity of the problem. For example, small errors suchas an unexpected character (e.g. “˜” or “^”) in a feature's title orname or a road segment in one country referring to an intersection inanother country, may be identified as a warning, but this may not besufficient to reject the edit. Similarly, if a referenced feature doesnot exist or a city is outside of it's state's bounds, errors may begenerated and the respective edits may be rejected. Any errors mayultimately cause the entire edit to be rejected in order to maintain theconsistency of the data stored in the repository.

In some examples, the server may also determine whether an edit orediting transaction actually includes edits to a plurality of features.In this case, the server may first determine whether the editingtransaction which includes the edit to a first feature also includes anedit to a second feature which may be affected by the edit to the firstfeature. If so, the server may retrieve the edited version of the secondfeature for all of the consistency checks rather than using thepre-edited version from the repository.

Rejected edits may not be applied to the repository, but the details ofthe error may be returned to the client device that originally submittedthe edit. In some examples, the error may be logged and manuallyreviewed in order to correct the error.

In some examples, the actions described above may be performed as asingle step. For example, for a particular feature and relationshiptype, all of the reference of that type may be collected from a featureand tagged with whatever data in the feature is relevant to thereference. This data may be collected before and after the edit. Then,the server may compare the sets of references and the tagged data foreach reference to determine whether a particular reference is to bechecked.

FIGS. 4A-4D depict an exemplary road network and will be used toillustrate various examples of the process described above. It will beunderstood that for the purposes of this example, all of the featuresdescribed, namely 410-14, 420-21, 430, and 440, are incremental featuresstored in the incremental feature partition of the repository.

FIG. 4A depicts the “physical” relationships among five road segmentfeatures 410-14, two intersection features 420-21, and an establishmentor business feature 430 of a road network. FIG. 4B also depicts theboundaries of various features. For example, boundary 430 a depicts abounding box or the geographic boundaries of establishment feature 430,boundary 413 a depicts the boundary of feature 413, and boundaries 420 aand 421 a depict the boundaries of intersection features 420-21,respectively. Box 440 depicts the route feature which encompasses roadsegment features 412-14.

The relationships between the different features are depicted in FIG.4C. For example, relationships 450 are bidirectional relationshipsbetween route feature 440 and road segment features 412-413 or, forexample, “road segment-route” type relationships. Relationships 460 arebidirectional relationships between various road segments and anintersection, or “road segment-intersection” type relationships.

FIG. 4D depicts several of the exemplary incremental features andassociated feature data. For example, feature 440 is a route withboundaries defined by the geolocation coordinates (5,9)-(15,11). Theroute feature may be considered a “parent” feature as it includesreference to features which may be considered subparts of the parentfeature, such as road segment features 411-13. These road segmentfeatures may be considered “children.” Thus, in FIG. 4D, route feature440 includes references to road segment features 411-13. Route feature440 also includes information identifying the type of its “children,”here “road segment.” Finally, route 440 also includes a name, “14^(th)Street.” Similarly, road segment feature 413 is a section of road withboundaries, a starting point and an end point which span between twointersections, namely, intersections 420-21. Intersection feature 421also includes boundaries, a point or latitude and longitude pair atwhich the intersection sits, and references to road segment features411-13.

Thus, these exemplary incremental features represent three distinctrelationship types; “road segment-route,” “road segment-intersection,”and “establishment-route relationships.” In the example, each of theserelationships is required to satisfy various rules. For example, foreach “road segment-route”: (1) the relationship must be bidirectional,(2) the road segment's bound must be contained within the route's bound,(3) the road segment's route type must be equal to the referred toroute's type, and (4) the route's child type must be equal to thereferred to road segment's type. For each “road segment-intersection”:(1) the relationship must be bidirectional, (2) the intersection's boundmust be contained by the road segment's bound, (3) the road segment'sstart-intersection's point must be equal to the road segment'sstart-point, and (4) the road segment's end-intersection's point must beequal to the road segment's endpoint. As explained above, changes tothese features may be examined to determine whether any relationshipswith referenced features must also be validated.

Editing a route feature which includes bidirectional relationships maytrigger validation checks. For example, changing the name of routefeature 440 to “Fourteenth Street” may not trigger any validationrequirements because there may be no bidirectional relationship typewhich depends upon a route's name. Increasing the bound of route feature440 to (4,9)-(15,11) may not trigger any validation requirements becausefeature 440 does not include any bidirectional relationship types whichcould be affected by this change. In other words, any feature previouslycontained within feature 440's bound would still be contained within itand there is no feature in which feature 440 is required to becontained.

Shrinking feature 440's bound to (6,9)-(15,11) may trigger a validationrequirement because such a change is likely to affect relationships ofthe “road segment-route” type. Thus, the server may call features410-414. In this example, feature 413's bound is no longer within thebound of feature 440. Accordingly, when this pair of features, 440 and413, are examined by the appropriate set of code based on the “roadsegment-route” relationship type, this edit would produce aninconsistency and may be rejected as described above.

In another example, removing the reference to feature 413 from feature440 may trigger a validation check because of the bidirectional “roadsegment-route” relationship between these features. For example, thisedit may affect road segment feature 413 because of its reference toroute feature 440. If feature 413 still includes a reference to feature440, in other words, if a corresponding edit to feature 413 did not alsoremove the reference to feature 440, the edit to feature 440 may berejected.

In yet another example, adding a reference to road segment feature 414in route feature 440 may trigger a validation check because of thebidirectional “road segment-route” relationship between these features.For example, this edit would result in including feature 414 as a childof feature 440. This could produce an inconsistency where the edit maybe rejected if feature 414 did not also include a corresponding changeto include a reference to feature 440 in the list of routes for feature414.

In still another example, changing feature 440's child-type to “ferrysegment” may trigger a validation requirement with each of feature 440'schildren because of the bidirectional “road segment-route” relationshipbetween these features. If the type of any child would not be includedin the child-type “ferry segment,” then the edit may be rejected.

In a further example, changing feature 440's feature type to “highway”may require a validation check comparing feature 440 to its childrenbecause of the bidirectional “road segment-route” relationship betweenthese features. If any child has a route-type other than “highway,” theedit may be rejected.

In yet a further example, deleting feature 440 may trigger validationchecks comparing feature 440 to its children (based upon its state frombefore the deletion) because of the bidirectional “road segment-route”relationship between these features.

Similar to route features, editing road segment features which includebidirectional relationships may trigger bidirectional validation checks.In one example, changing road segment feature 413's type or route-typemay trigger a validation check comparing feature 413 to feature 440based on the bidirectional “road segment-route” relationship betweenthese features. The server may verify whether the correspondingchild-type or feature type of feature 440 are still consistent. If not,the server may reject these edits.

In another example, changing route segment feature 413's end point maytrigger a bidirectional validation check comparing feature 413 tointersection feature 421 based on the bidirectional “road segment-route”relationship between these features. The server may verify that feature413's end point is equal to feature 421's point geometry after the edit(i.e. whether intersection feature 421 has also been edited to reflectthis change). If not, the server may reject this edit.

In yet another example, changing route segment feature 413's bound maytrigger a bidirectional validation check. For example, based on thebidirectional “road segment-route” relationship type, the server maycompare feature 413 to feature 440 if feature 413's bound grows, tofeature 421 if feature 413's bound shrank, or to both features 421 and440 if the bound changed in a way that was neither strictly shrinkingnor strictly growing.

In still another example, changing other attributes of road segmentfeature 413, such as by making it a one-way road, or adding a bend inits path without affecting its endpoints, may not trigger anybidirectional validation checks as no bidirectional relationship typeswould be affected.

Incremental Features with Uni-Directional Relationships

The server may perform validation checks on an incremental feature whichincludes a unidirectional relationship with another incremental feature.Unidirectional relationships may be handled similarly to bidirectionalrelationships when the feature which contains the reference (forexample, the first feature) is being modified. The server determinesthat a first feature includes a unidirectional relationship with asecond feature, the server may identify the type of the relationship andan appropriate set of code for examining the feature (e.g. a C++object). For example, where one feature of a certain type (anestablishment) references another feature of a certain type (a roadsegment) the server may identify the relationship as a“establishment-road segment” relationship. The server may determine thatthis is a unidirectional relationship as all establishment-road segmentrelationships may be unidirectional.

Once the relationship has been classified, the server may identify anappropriate set of code, such as a C++ object, for the identifiedrelationship type. If a feature includes multiple unidirectionalrelationship types with other features, the server may identify one ormore C++ objects.

As the relationship between the first feature and the second feature isunidirectional, the server may determine if some action is required withregard to a corresponding backreference. The server may run theappropriate set of code on the feature that is being edited and recordsthe changes to the references included in the feature in order todetermine what type of action to take with regard to any backreferences.For example, the server may determine whether a unidirectional referenceis being added, kept, or dropped from the examined feature. Once all theobjects have been run, the feature being edited and its backreferencemodifications are consolidated, taking into account all of thecontributions from different relationships. For example, a business mayinclude two references to a road segment, one reference being based on acomponent of business's address and another reference for an accesspoint to the business. If the business feature is edited to remove theaccess point relationship, server may record would record a “drop” orsimilar status for the backreference. If the address relationshipremains despite the edits to the business feature, that object mayrecord a “keep”. Taken together, these two results may cause thebackreference to be kept.

These consolidated add, keep or drop decisions may be made based on thetype (or unidirectional relationship type) of the backreference. Forexample, if the backreference includes a position component as well as adirectionality component, the position backreference may be kept whilethe directionality backreference may be removed. In some examples theunidirectional checks can involve some validation checks that involvelooking up the second feature. For example, an establishment feature mayinclude a reference to a route. The establishment-route reference may beunidirectional, but if the reference between the establishment and theroute is created, the server may need to verify that the establishmentis within the bounds of the route. Thus, if the establishment is moved,the server may want to re-verify whether the establishment is stillwithin the bounds of the route.

In order to also run the validation when the referred to feature (forexample, the second feature) is being modified, the server may alsostore backreferences in the repository. For example, a business mayrefer to a road segment as both a component of its address and as anaccess point. If the road segment does not also contain reversereferences to the business, the server may generate a backreference fromthe road segment to the business, for example, for the address and theaccess point relationships when validating these relationships asdescribed above (e.g. conducting an add). As described above, thisbackreference may be associated with the feature identifier of thereferred to feature, in this example, the road segment, and stored inmemory. Thus, backreferences may be computed whenever the server isexamining the difference between the old and new versions of a featureduring a validation check and the server encounters a unidirectionalreference.

When an update to an incremental feature is committed to the repository(to be accessed by client devices), all of the modifications to thebackreferences may also be committed at the same time. The server mayuse transactions in the repository (or the consistent storage) in orderto maintain consistent views of the independent features.

Whenever an incremental feature is modified, in addition to validatingbidirectional relationships as described above, the server may alsoretrieve any backreferences associated with the feature. For each secondfeature which is both being edited and also a referred to feature in aunidirectional relationship, the server may not be able to automaticallydetermine if the second feature is a referred to feature based on theattributes of the second feature alone. Rather than calling each of theother features in the repository to determine if the changes to thesecond feature may affect any other features, the server may query thebackreference table for the second features' feature ID. If the featureID is found, a backreference exists for the second feature, and theserver may identify the unidirectional relationship type associated withthe backreference. Based on the relationship type, the server mayidentify an appropriate set of code for examining the second feature.The server may then examine the second feature to determine whether theedit may affect the identified relationship type. The server mayidentify another feature from the backreference, call the identifiedfeature from the repository, and pass the edited feature and theidentified feature through the appropriate set of code in order tovalidate the relationship between the features. In one alternative, theserver may first identify the relationship types which may be affectedby an edit to a feature and then determine whether there are anybackreferences including the edited feature of those relationship types.

As with bidirectional relationships, editing a route feature thatincludes a unilateral relationship may trigger checks. Returning to theexample of FIGS. 4A-4D, feature 430 includes relationship 470 withfeature 440. Relationship 470 is a unidirectional “establishment-route”or “address” relationship type between establishment feature 430 androute feature 440. As with bidirectional relationships, thisrelationship is also required to satisfy a set of rules. For example,for each address a feature's bound must be contained with the bound eachof the features listed in the address. For example, if the addressrelationship is also an “establishment-route” relationship, theestablishment must be within the bound of the route (the route must beincluded in the address of the establishment).

As establishment feature 430 includes a unidirectional relationship withroute feature 440, when the reference to feature 440 was initiallyincluded in feature 430, the server should have written a backreferenceinto the backreference table identifying feature 440 as having anaddress or “establishment-route” relationship with feature 430.Accordingly, when the server searches the backreference table forbackreferences identifying route feature 440, the server may identifyestablishment feature 430. Thus, the server may request feature 430 fromthe repository to determine whether the changes to route feature 440would create an inconsistency with the establishment.

Again, if the server identifies changes to the features which wouldaffect this unidirectional relationship type, the server may call theboth features from the repository. Returning to the example above,increasing the bound of route feature 440 to (4,9)-(15,11) may nottrigger any validation requirements because any feature previouslycontained within route 440's bound would still be contained within itand there are no feature in which route feature 440 is required to becontained. In other words, this type of change would not affect thistype of unidirectional relationship.

In one example, changing the name of route feature 440 to “15^(th)Street” may trigger a validation requirement as this may affect theaddress or location of an establishment. In another example, changingthe route's type, for example from a highway to an ordinary street, maytrigger a validation requirement. In other words, these types of changesmay affect this type of unidirectional relationship. Similarly,shrinking route feature 440's bound to (6,9)-(15,11) may trigger avalidation requirement because such a change is again likely to affectan “establishment-route” relationship because the change may cause theestablishment to no longer be within the bounding box of the route.

In another example, deleting feature 440 may trigger validation checkscomparing feature 440 to its children (based upon its state from beforethe deletion) but may also trigger validation checks comparing feature440 with feature 430 because of the type of unidirectional relationshipbetween these features.

Editing an establishment feature may trigger the server to check thestatus of any backreference data. For example, moving or growing thebound of establishment feature 430 may trigger a check of the status ofany backreferences. This change would require the server to examine thetype of edit to feature 430 to determine whether to add, drop or keep acorresponding backreference. In addition, the server may conduct avalidation check to ensure that feature 430's bound was still containedwithin feature 440's bound. If feature 430's bound was no longercontained within feature 440's bound after the transaction, then theedit may be rejected. However, if in addition to moving the bound ofestablishment feature 430 outside of the bound of feature 440 and theedit to establishment feature 430 also included changing the addressreference to route feature 440, this edit may not be rejected.

The exemplary features of FIG. 5 demonstrate a unidirectional“hierarchy” relationship among features representing businessestablishments which contain one another as well as bidirectionalrelationships between a feature representing a business and anotherrepresenting the business's building. For example establishment features501-03 represent a fictitious doctor, the doctor's medical practice, andthe medical practice's building, respectively. The medical practiceestablishment feature 503 includes a bidirectional relationship with thebuilding establishment feature 502 it occupies. The doctor establishmentfeature 501 includes a unidirectional relationship with the medicalpractice establishment feature 501.

In the simplest example, the only requirement for both of these“establishment-establishment” relationships may be the bound. In thatcase, growing or shrinking any of the bounds of features 501-03 maytrigger a validation check, but no other changes would trigger anyvalidation checks in this example.

If there are more complex consistency requirements, other changes maytrigger validation checks. For example, a business establishment may berequired to list its access points (i.e., where the business is locatedalong a road segment). These access points may be required to be equalto the access points of the building which it occupies. In this example,a change to the access points of features 502 or 503 may trigger a checkcomparing these features. In another example, doctors and practices maybe required to list specialties, in which case, the server may requirethose specialties to match. Thus a change to the specialty of feature501 or 502 may trigger a validation check comparing these features.

FIG. 6 depicts exemplary flow diagram 600 based on the processesdescribed above. At block 602, the server selects an edited incrementalfeature for multi-feature validation. For example, before or after theserver has validated the single-feature attributes of a feature, theserver may validate any references or backreferences associated with theselected edited feature. At block 604, the server determines whether theedited feature includes any references to other features. If so, theserver determines a relationship type of the relationship between theedited feature and the referenced feature at block 606. The server alsodetermines whether the relationship is bidirectional (or unidirectional)at block 608. If the relationship is bidirectional, the server thenidentifies a set of code for examining the edited feature base on therelationship type at block 610. The server then determines an edit typeby examining the edited feature with the identified set of code at block612. At block 614, the server determines whether the edit type couldaffect the referenced feature based on the relationship type. If not,the server returns to block 604 to determine whether the edited featureincludes any additional references. If the edit type could affect thereferenced feature, the server retrieves the referenced feature from therepository and examines the referenced feature with the identified setof code at block 616. The server then determines whether the examinationresults in significant errors between the edited feature and thereferenced feature at block 618. For example, the server may determinewhether the edited feature and the referenced feature meet a set ofrequirements associated with the bidirectional relationship type. Ifthere are no significant errors, the server returns to block 604 todetermine whether the edited feature includes additional references. Ifthere are significant errors, the server may reject the edited featureat block 620, and return to block 602 to select the next editedincremental feature for multi-feature validation.

Returning to block 608, if the relationship type is not bidirectional,the server may determine that the relationship type is unidirectional.The server then identifies a set of code for examining the editedfeature base on the relationship type at block 622. The serverdetermines an edit type by examining the edited feature with theidentified set of code at block 624. Next, the server identifies abackreference action, for example, add, keep, or drop, based on the edittype at block 626. At block 628, the server performs the identifiedaction and returns to block 614 to determine whether the edit type couldaffect the referenced feature based on the relationship type.

Returning to block 604, if the edited feature does not include anyadditional features, the server moves to block 630 to determine whetherthere are any backreferences. For example, the server may query abackreference table for the edited feature's feature ID. If abackreference is identified, the server identifies a relationship typeassociated the identified backreference at block 632. The server thenidentifies a set of code for examining the edited feature base on therelationship type at block 634. The server determines an edit type byexamining the edited feature with the identified set of code at block636. At block 638, the server determines whether the edit type couldaffect the backreferenced feature based on the relationship type. Ifnot, the server returns to block 630 to determine whether the editedfeature includes any additional backreferences.

If the edit type could affect the backreferenced feature, the serverretrieves the backreferenced feature from the repository and examinesthe backreferenced feature with the identified set of code at block 640.The server then determines whether the examination results insignificant errors between the edited feature and the backreferencedfeature at block 642. For example, the server may determine whether theedited feature and the referenced feature meet a set of requirementsassociated with the unidirectional relationship type. If there are nosignificant errors, the server returns to block 630 to determine thereare any additional backreferences. If there are significant errors, theserver may reject the edited feature at block 620, and return to block602 to select the next edited incremental feature for multi-featurevalidation.

Returning to block 630, if there are no additional backreferences, theserver then accepts the edited feature at block 644. Next, the serverreturns to block 602 to select the next edited incremental feature formulti-feature validation.

In another example, the server may iterate over all of the validationcheck types. Each validation check type may be associated with areference type which may be affected by an edit to a feature with such areference. For each reference type associated with a particularvalidation check, the server may determine whether the reference type isrelevant to the feature being edited, whether the edited feature and thereference type share a relationship type (e.g. a “roadsegment-intersection” relationship type would not be relevant to abusiness) and whether the feature includes any references of that type.For example, for a particular check the server may determine whether thefeature, either before or after the edit, contains any references of thetype considered by the check. Next, the server may determine whether theparticular edit to the feature could possibly affect the result of thecheck as applied to any of the feature's references. If so, the servermay retrieve the referred to feature and examine it with an appropriateset of code to determine if there any warnings or errors. This may allowthe server to retrieve the referred to features simultaneously andvalidate a plurality of features in parallel. The server may alsodetermine whether the relationship type is unidirectional orbidirectional and if necessary, identify a backreference action.

In addition, the consistency and validation checks described above mayalso be run by the server in a batch mode. For example, the server maycheck the consistency of the entire incremental feature repository atone timestamp. This may be needed in order to introduce a newconsistency check or after all of the bulk edits have been written for anew epoch and a new set of incremental features which include referencesto bulk features at the new epoch have been written.

As these and other variations and combinations of the features discussedabove can be utilized without departing from the invention as defined bythe claims, the foregoing description of exemplary embodiments should betaken by way of illustration rather than by way of limitation of theinvention as defined by the claims. It will also be understood that theprovision of examples of the invention (as well as clauses phrased as“such as,” “e.g.”, “including” and the like) should not be interpretedas limiting the invention to the specific examples; rather, the examplesare intended to illustrate only some of many possible aspects.

The invention claimed is:
 1. A method for validating edits togeographical features, the method comprising: storing, by the one ormore processors, a plurality of geographical features; editing, by theone or more processors, a first feature corresponding to a road segmentby making one or more edits to obtain an edited first feature;identifying, by the one or more processors, a reference associated withthe edited first feature, the reference identifying a second feature ofthe plurality of geographical features; determining, by the one or moreprocessors, a relationship type identifying a physical relationshipbetween the edited first feature and the second feature; identifying, bythe one or more processors, a set of requirements defining how theedited first feature and the second feature relate to one another in therepository; determining, by the one or more processors, whether theedited first feature and the referenced second feature satisfy the setof requirements; and when the edited first feature and the referencedfeature are determined to satisfy the set of requirements, validating,by the one or more processors, the edited first feature.
 2. The methodof claim 1, wherein the second feature is a route defined by geographiclocation coordinates, and the physical relationship between the routeand the edited first feature indicates that the route includes a roadsegment of the edited first feature.
 3. The method of claim 2, whereinthe set of requirements includes that the second feature and the editedfirst feature have a bidirectional relationship.
 4. The method of claim2, wherein the set of requirements includes that the edited firstfeature have a bound that is contained within a bound of the route ofthe second feature.
 5. The method of claim 2, wherein a route typeassociated with the edited first feature is equal to a route type of thesecond feature.
 6. The method of claim 2, wherein a route typeassociated with the edited first feature is equal to a route type of thesecond feature.
 7. The method of claim 2, wherein a subpart type of theroute is equal to a type of the edited first feature.
 8. The method ofclaim 1, wherein the second feature is an intersection and the physicalrelationship between the intersection and the edited first featureindicates that the edited first feature is connected to theintersection.
 9. The method of claim 8, wherein the set of requirementsincludes that the second feature and the edited first feature have abidirectional relationship.
 10. The method of claim 1, wherein editingthe first feature includes decreasing a length of the road segment. 11.A system for validating edits to geographic features, the systemcomprising: memory storing a plurality of geographical features; one ormore processors configured to: edit a first feature corresponding to aroad segment by making one or more edits to obtain an edited firstfeature; identify a reference associated with the edited first feature,the reference identifying a second feature of the plurality ofgeographical features; determine a relationship type identifying aphysical relationship between the edited first feature and the secondfeature; identify a set of requirements defining how the edited firstfeature and the second feature relate to one another in the repository;determine whether the edited first feature and the referenced secondfeature satisfy the set of requirements; and when the edited firstfeature and the referenced feature are determined to satisfy the set ofrequirements, validate the edited first feature.
 12. The system of claim11, wherein the second feature is a route defined by geographic locationcoordinates, and the physical relationship between the route and theedited first feature indicates that the route includes a road segment ofthe edited first feature.
 13. The system of claim 12, wherein the set ofrequirements includes that the second feature and the edited firstfeature have a bidirectional relationship.
 14. The system of claim 12,wherein the set of requirements includes that the edited first featurehave a bound that is contained within a bound of the route of the secondfeature.
 15. The system of claim 12, wherein a route type associatedwith the edited first feature is equal to a route type of the secondfeature.
 16. The system of claim 12, wherein a route type associatedwith the edited first feature is equal to a route type of the secondfeature.
 17. The method of claim 12, wherein a subpart type of the routeis equal to a type of the edited first feature.
 18. The system of claim11, wherein the second feature is an intersection and the physicalrelationship between the intersection and the edited first featureindicates that the edited first feature is connected to theintersection.
 19. The system of claim 18, wherein the set ofrequirements includes that the second feature and the edited firstfeature have a bidirectional relationship.
 20. A non-transitorycomputer-readable medium on which instructions are stored, theinstructions when executed by one or more processors, cause the one ormore processors to perform a method of validating edits to geographicalfeatures, the method comprising: editing a first feature correspondingto a road segment by making one or more edits to obtain an edited firstfeature; identifying a reference associated with the edited firstfeature, the reference identifying a second feature of the plurality ofgeographical features; determining a relationship type identifying aphysical relationship between the edited first feature and the secondfeature; identifying a set of requirements defining how the edited firstfeature and the second feature relate to one another in the repository;determining whether the edited first feature and the referenced secondfeature satisfy the set of requirements; and when the edited firstfeature and the referenced feature are determined to satisfy the set ofrequirements, validating the edited first feature.